﻿package net.hainan.chat;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.scenery.R;
/****
 *主界面
 * */
public class LvyouActivity extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);  
        setContentView(R.layout.main);
        Button btnChat = (Button) findViewById(R.id.btnChat);//实例化按钮
      //  Button btnShowPosition = (Button) findViewById(R.id.btnShowPosition);
        btnChat.setOnClickListener((OnClickListener) this);//监听单击事件
      //  btnShowPosition.setOnClickListener((OnClickListener) this);
        
    }
 

public void onClick(View v)
{
	//if (v.getId()==R.id.btnChat)
	//{
	Intent intent = new Intent(LvyouActivity.this,Openfire.class);//跳转页面
	startActivity(intent);
	//}
	
	//case R.id.btnShowPosition:
	//{
		
	//}
	}

	
    }